<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增审批')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-approve-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否修改：</label>
                <div class="col-sm-8">
                    <input name="procurementDeclareId" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否修改：</label>
                <div class="col-sm-8">
                    <input name="purchasingUnitId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否修改：</label>
                <div class="col-sm-8">
                    <input name="userInfoId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否修改：</label>
                <div class="col-sm-8">
                    <input name="cgbuserInfoId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购计划：</label>
                <div class="col-sm-8">
                    <input name="purchasePlanId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审批结果：</label>
                <div class="col-sm-8">
                    <input name="approvalResult" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">审批意见：</label>
                <div class="col-sm-8">
                    <input name="approveSuggestion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最终审批意见：</label>
                <div class="col-sm-8">
                    <input name="yApproveResult" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最终审批意见：</label>
                <div class="col-sm-8">
                    <input name="yApproveSuggestion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购办审批结果：</label>
                <div class="col-sm-8">
                    <input name="cgbApproveResult" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购办审批意见：</label>
                <div class="col-sm-8">
                    <input name="cgbApproveSuggestion" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主管单位审批时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="yapproveTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采购办审批时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="cgbApproveTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">退回原因：</label>
                <div class="col-sm-8">
                    <input name="backReason" class="form-control" type="text">
                </div>
            </div>

        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/approve"
        $("#form-approve-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-approve-add').serialize());
            }
        }

        $("input[name='yapproveTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='cgbApproveTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>